package com.sqsf.controller;

import com.sqsf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class UserController {
    @Autowired
    private UserService userServiceImpl;
    @RequestMapping("/all")
    public String find(HttpServletRequest request){
        request.setAttribute("msg",userServiceImpl.findAll());
        return "success";
    }
}